<template>
    <!--components/canvas-drag/index.wxml-->
    <canvas canvas-id='canvas-label'
            disable-scroll="true"
            bindtouchstart="start"
            bindtouchmove="move"
            bindtouchend="end"
            :style="{ width: width + 'px', height: height + 'px'}"
    ></canvas>
</template>

<script>
import index from './index'
export default {
   ...index
   
}
</script>

<style>
/* components/canvas-drag/index.wxss */
.movable-label {
    margin-top: 300px;
    width: 750px;
    height: 400px;
    background: #eee;
}
.movable-block {
    width: 120px;
    height: 120px;
    background: #ccc;
}
.movable-block .image-con {
    width: 100%;
    height: 100%;
}
</style>